package com.team.ai.mapper;

import com.team.ai.entity.Community;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;
import java.util.List;

@Mapper
public interface CommunityMapper {
    int insert(int userId, String content, Date createtime, String pic,String uName,String img);
    int update(int likesize,int id);
    List<Community> selectList();
    Community selectById(int id);

    List<Community> selectByList(int id);
    List<Community> selectByUserIds(int userId);
    List<Community>selectByUserId(int userId);

    List<Community>selectByUserIda(int userId);
}
